package com.sftz.assets.entities;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import com.uxuexi.core.common.util.DateTimeUtil;

@Data
@Table("course_learning_record")
public class CourseLearningRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id(auto = true)
	private Integer id;

	@Column
	@Comment("用户id")
	private Integer userId;

	@Column
	@Comment("用户姓名")
	private String userName;

	@Column
	@Comment("课程id")
	private Integer courseId;

	@Column
	@Comment("课程名称")
	private String courseName;

	@Column
	@Comment("学习进度")
	private Integer learningProgress;

	@Column
	@Comment("学习状态")
	private Integer learningState;

	@Column
	@Comment("章id")
	private Integer chapteId;

	@Column
	@Comment("章名称")
	private String chapterName;

	@Column
	@Comment("节id")
	private Integer sectionId;

	@Column
	@Comment("节名称")
	private String sectionName;

	@Column
	@Comment("学习时间")
	private Date learningTime = DateTimeUtil.nowDate();

	@Column
	@Comment("链接标识")
	private String url;

	@Column
	@Comment("资源类型")
	private Integer resourceType;

	@Column
	@Comment("资源的id")
	private Integer resourceId;

	@Column
	@Comment("资源名称")
	private String resourceName;

}